/**
 * site.css
 */
@import "./_parts/base/variables";
@import "./_parts/mixins/index";

body {
    font-family: $font-family;
    font-size: 14px;
    line-height: 1.58;
    color: #444;
    background-color: #f1f1f1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 60px;
    line-height: 60px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px #f0f1f2;

    .logo {
        margin-left: 20px;
        font-size: 20px;
    }

    &.site-fixed {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 999;
    }
}

.site-logo {
    background-color: $primary-color;
    width: 120px;
    height: 30px;
}

.site-text-title {
    color: $heading-color;
}

.site-text {
    color: $text-color;
}

.site-text-secondary {
    color: $text-color-secondary;
}

.site-border {
    box-sizing: border-box;
    border: 1px solid $border-color;
}

.site-border-radius {
    border-radius: $border-radius;
}

.site-box-shadow {
    box-shadow: $box-shadow;
}

.table {
    caption {
        background-color: #fff;
        margin-top: 10px;
    }
}

.form {
    padding: 15px;
}

.site-tooltip {
    position: relative;
    @include inline-block;
    margin: 10px 20px;
    opacity: 1;
}

.site-tree {
    position: fixed;
    top: 60px;
    bottom: 0;
    width: 260px;
    border-right: 1px solid #eee;
    z-index: 100;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 2px 0 8px #f0f1f2;

    .site-nav {
        list-style: none;

        .site-nav-item {
            .site-nav-title {
                line-height: 36px;
                margin: 15px 0 5px;
                padding: 5px 15px;
                background-color: #f2f2f2;
            }

            .site-nav-link {
                display: inline-block;
                vertical-align: top;
                height: 26px;
                color: $text-color-secondary;
                padding: 3px 0 5px 20px;
                cursor: pointer;
                text-decoration: none;
                transition: all 1s ease;

                &:hover,
                &:focus {
                    color: $text-color;
                    font-weight: 400;
                }
            }

            &.active {
                .site-nav-link {
                    color: #01AAED;
                }
            }
        }
    }
}

.site-content {
    z-index: 100;
    margin-top: 75px;
    margin-left: 275px;
    margin-right: 15px;
    padding: 20px 20px 10px 20px;
    background-color: #fff;

    .site-title {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 20px;

        a {
            position: relative;
            top: -80px;
            visibility: hidden;
            margin-left: 3px;
        }
    }

    .site-subtitle {
        font-size: 20px;
        font-weight: 900;
        margin-top: 0;
        margin-bottom: 15px;
    }

    .site-thititle {
        font-size: 15px;
        font-weight: 600;
        margin-top: 0;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .site-info {
        max-width: 1000px;
        padding: 0 15px;
        border-radius: 2px;
        margin-bottom: 20px;

        .layout {
            text-align: center;
            color: #fff;
            line-height: 100%;
        }

        .site-table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;

            >thead {
                >tr {
                    >th {
                        padding: 8px 10px;
                        border: 1px solid #e2e2e2;
                        border-bottom-width: 2px;
                    }
                }
            }

            >tbody {
                >tr {
                    >td {
                        padding: 8px 10px;
                        border: 1px solid #e2e2e2;
                    }

                    &:nth-child(odd) {
                        background-color: #fefefe;
                    }
                }
            }
        }

        .site-mask {
            min-height: 30px;
            line-height: 30px;
            padding-left: 10px;
            color: #fff;
            background-color: $primary-color;
            margin: 5px 0;
            border-left: 5px solid #f7f7f7;
            border-right: 5px solid #f7f7f7;

            .mask-right {
                float: right;
                margin-right: 10px;
            }

            @include clearfix;

            &.color {
                cursor: pointer;

                .mask-right {
                    display: none;
                }

                @include hover-focus {
                    .mask-right {
                        display: block;
                        transition: all 0.5s ease;
                    }
                }
            }
        }

        .site-submask {
            min-height: 25px;
            line-height: 30px;
            padding-left: 10px;
            color: #fff;
            background-color: darken($primary-color, 15%);
            margin: 5px 0;
            border-left: 5px solid #f7f7f7;
            border-right: 5px solid #f7f7f7;
        }

        .site-mask-white {
            height: 30px;
            line-height: 30px;
            padding-left: 10px;
            background-color: #fff;
            margin: 5px 0;
        }

        .list-box {
            @include clearfix;

            .box-item {
                float: left;
                margin: 5px;
                color: #fff;
                width: 80px;
                height: 80px;
                text-align: center;
                background-color: #1890ff;
                border-radius: 2px;
                cursor: pointer;

                .box-title {
                    margin-top: 15px;
                }

                .box-title,
                .box-text {
                    line-height: 1.8;
                }
            }
        }

        .loaders {
            background-color: #1890ff;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            @include clearfix;

            .loader {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 25%;
                height: 200px;
                text-align: center;
                border: 1px solid #fff;
                box-sizing: border-box;
            }
        }

        .timeline {
            padding: 20px;
            background-color: #eee;
            border-radius: 3px;
        }
    }

    .icons-list {
        list-style: none;
        @include clearfix;

        .icon-item {
            position: relative;
            float: left;
            min-width: 120px;
            text-align: center;
            margin-bottom: 15px;
            border-radius: 6px;
            padding: 6px 0;
            cursor: pointer;

            .hiicon {
                @include inline-block;
                width: 50px;
                height: 50px;
                line-height: 50px;
                font-weight: 500;
                font-size: 30px;
                color: #555;
            }

            .icon-badge {
                display: block;
                text-align: center;
                font-size: 12px;
                line-height: 1;
                margin-top: 6px;
            }

            @include hover-focus {
                transform: scale(1.2);
                background-color: #1890ff;
                transition: all 1s ease;

                .icon,
                .icon-badge {
                    color: #fff;
                }

                .icon {
                    font-size: 40px;
                }
            }
        }
    }
}

.site-footer {
    color: #fff;
    padding: 30px 0;
    text-align: center;

    .site-nav {
        padding-left: 0;

        .site-nav-item {
            display: inline-block;

            .site-nav-link {
                font-size: 14px;
                color: #aaa;
                padding: 5px 10px;
            }
        }
    }

    .copyright {
        font-size: 14px;
        color: #aaa;

        >a {
            color: #aaa;
            text-decoration: none;
        }
    }
}

#scrollUp {
    position: fixed;
    right: 0;
    bottom: 10%;

    >a {
        display: block;
        font-size: 12px;
        line-height: 1;
        padding: 8px 10px;
        background-color: #aaa;
        color: #fff;
        border-radius: 50% 0 0 50%;
        text-decoration: none;
    }
}